<? if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('space_trade');
0
|| checktplrefresh('./template/default/home/space_trade.htm', './template/default/common/simplesearchform.htm', 1299641011, 'diy', './data/template/1_diy_home_space_trade.tpl.php', './template/default', 'home/space_trade')
|| checktplrefresh('./template/default/home/space_trade.htm', './template/default/common/userabout.htm', 1299641011, 'diy', './data/template/1_diy_home_space_trade.tpl.php', './template/default', 'home/space_trade')
;?><? include template('common/header'); ?><?php $_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&amp;do=trade\">商品</a>"; if($_G['gp_view'] == 'eccredit') { ?><?php $_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&amp;uid=$space[uid]&amp;do=$do&amp;view=eccredit\">TA的信用评价</a>"; } else { ?><?php $_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&amp;uid=$space[uid]&amp;do=$do&amp;view=onlyuser\">TA的所有商品</a>"; } ?>

<div id="pt" class="bm cl"><? if($_G['setting']['search']) { ?><?php $slist = array(); if($_G['fid'] && $_G['forum']['status'] != 3 && $mod != 'group') { ?><?
$slist[forumfid] = <<<EOF
<li><input type="radio" id="mod_curform" class="pr" name="mod" value="curforum" checked="checked" /><label for="mod_curform" title="搜索本版">搜索本版</label></li>
EOF;
?><? } if($_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)) { ?><?
$slist[portal] = <<<EOF
<li><input type="radio" id="mod_article" class="pr" name="mod" value="portal"
EOF;
 if(CURSCRIPT == 'portal') { 
$slist[portal] .= <<<EOF
 checked="checked"
EOF;
 } 
$slist[portal] .= <<<EOF
 /><label for="mod_article" title="搜索文章">文章</label></li>
EOF;
?><? } if($_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)) { ?><?
$slist[forum] = <<<EOF
<li><input type="radio" id="mod_thread" class="pr" name="mod" value="forum"
EOF;
 if(CURSCRIPT == 'forum' && !$_G['fid']) { 
$slist[forum] .= <<<EOF
 checked="checked"
EOF;
 } 
$slist[forum] .= <<<EOF
 /><label for="mod_thread" title="搜索{$_G['setting']['navs']['2']['navname']}">{$_G['setting']['navs']['2']['navname']}</label></li>
EOF;
?><? } if($_G['setting']['search']['blog']['status'] && ($_G['group']['allowsearch'] & 4 || $_G['adminid'] == 1)) { ?><?
$slist[blog] = <<<EOF
<li><input type="radio" id="mod_blog" class="pr" name="mod" value="blog"
EOF;
 if(CURSCRIPT == 'home' && $do != 'album') { 
$slist[blog] .= <<<EOF
 checked="checked"
EOF;
 } 
$slist[blog] .= <<<EOF
 /><label for="mod_blog" title="搜索日志">日志</label></li>
EOF;
?><? } if($_G['setting']['search']['album']['status'] && ($_G['group']['allowsearch'] & 8 || $_G['adminid'] == 1)) { ?><?
$slist[album] = <<<EOF
<li><input type="radio" id="mod_album" class="pr" name="mod" value="album"
EOF;
 if(CURSCRIPT == 'home' && $do == 'album') { 
$slist[album] .= <<<EOF
 checked="checked"
EOF;
 } 
$slist[album] .= <<<EOF
 /><label for="mod_album" title="搜索相册">相册</label></li>
EOF;
?><? } if($_G['setting']['groupstatus'] && $_G['setting']['search']['group']['status'] && ($_G['group']['allowsearch'] & 16 || $_G['adminid'] == 1)) { ?><?
$slist[group] = <<<EOF
<li><input type="radio" id="mod_group" class="pr" name="mod" value="group"
EOF;
 if(CURSCRIPT == 'group' || $_G['basescript']=='group') { 
$slist[group] .= <<<EOF
 checked="checked"
EOF;
 } 
$slist[group] .= <<<EOF
 /><label for="mod_group" title="搜索{$_G['setting']['navs']['3']['navname']}">{$_G['setting']['navs']['3']['navname']}</label></li>
EOF;
?><? } ?><?
$slist[user] = <<<EOF
<li><input type="radio" id="mod_user" class="pr" name="mod" value="user" /><label for="mod_user" title="搜索用户">用户</label></li>
EOF;
?>
<? if($slist) { ?>
<div id="sc" class="y">
<form id="scform" method="post" autocomplete="off" onsubmit="searchFocus($('srchtxt'))" action="<?=$_G['siteurl']?>search.php?searchsubmit=yes" target="_blank">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="srchtype" value="title" />
<input type="hidden" name="srhfid" value="<?=$_G['fid']?>" />
<table cellspacing="0" cellpadding="0">
<tr>
<td><a href="search.php" target="_blank" id="sctype" class="showmenu" onclick="showMenu(this.id);return false;">搜索</a></td>
<td><input type="text" name="srchtxt" id="srchtxt" class="px z" value="请输入搜索内容" autocomplete="off" onfocus="searchFocus(this);" onblur="searchBlur(this);" /></td>
<td><button id="search_submit" name="searchsubmit" type="submit" value="true" class="xw1">搜索</button></td>
</tr>
</table>
<div id="sctype_menu" class="p_pop cl" style="display: none">
<ul><? echo implode('', $slist);; ?></ul>
</div>
</form>
<script type="text/javascript">initSearchmenu();</script>
</div>
<? } } ?><div class="z">
<a href="./" class="nvhm" title="首页"><?=$_G['setting']['bbname']?></a> <em>&rsaquo;</em>
<a href="home.php"><?=$_G['setting']['navs']['4']['navname']?></a> <em>&rsaquo;</em> 
<a href="home.php?mod=space&amp;do=trade">商品</a>
<? if($_GET['view']=='me') { ?>
 <em>&rsaquo;</em> <a href="home.php?mod=space&amp;uid=<?=$space['uid']?>&amp;do=trade&amp;view=me"><?=$space['username']?>的商品</a>
<? } ?>
</div>
</div>

<style id="diy_style" type="text/css"></style>
<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>

<div id="ct" class="ct2_a wp cl">
<div class="mn">
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
<div class="bm bw0">
<? if((!$_G['uid'] && !$space['uid']) || $space['self']) { ?>
<h1 class="mt"><img alt="trade" src="<?=IMGDIR?>/tradesmall.gif" class="vm" /> 商品</h1>
<? } if($space['self']) { ?>
<ul class="tb cl">
<li<?=$actives['we']?>><a href="home.php?mod=space&amp;uid=<?=$space['uid']?>&amp;do=trade&amp;view=we">好友出售的商品</a></li>
<li<?=$actives['me']?>><a href="home.php?mod=space&amp;uid=<?=$space['uid']?>&amp;do=trade&amp;view=me">我的商品</a></li>
<li<?=$actives['tradelog']?>><a href="home.php?mod=space&amp;uid=<?=$space['uid']?>&amp;do=trade&amp;view=tradelog">交易记录</a></li>
<li<?=$actives['eccredit']?>><a href="home.php?mod=space&amp;uid=<?=$space['uid']?>&amp;do=trade&amp;view=eccredit">信用评价</a></li>
<li<?=$actives['all']?>><a href="home.php?mod=space&amp;uid=<?=$space['uid']?>&amp;do=trade&amp;view=all">随便看看</a></li>
<? if($_G['group']['allowposttrade']) { ?>
<li class="o">
<? if($_G['setting']['tradeforumid']) { ?>
<a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?=$_G['setting']['tradeforumid']?>&amp;special=2">发起新交易</a>
<? } else { ?>
<a href="forum.php?mod=misc&amp;action=nav&amp;special=2" onclick="showWindow('nav', this.href)">发起新交易</a>
<? } ?>
</li>
<? } ?>
</ul>
<? } else { include template('home/space_menu'); ?><p class="tbmu cl">
<span class="y">
<? if($_G['gp_view']=='me') { ?><?php $actives[onlyuser]=' class="a"'; } if($space['uid'] > 0) { ?>
<a href="home.php?mod=space&amp;uid=<?=$space['uid']?>&amp;do=trade&amp;view=onlyuser"<?=$actives['onlyuser']?>>出售的商品</a><span class="pipe">|</span>
<a href="home.php?mod=space&amp;uid=<?=$space['uid']?>&amp;do=trade&amp;view=eccredit"<?=$actives['eccredit']?>>信用评价</a>
<? } ?>
</span>
</p>
<? } if($_G['gp_view'] == 'tradelog' && $space['uid'] > 0) { ?>
<p class="tbmu bw0">
<a href="home.php?mod=space&amp;uid=<?=$space['uid']?>&amp;do=trade&amp;view=tradelog&amp;type=sell" <?=$orderactives['sell']?>>卖家交易</a><span class="pipe">|</span>
<a href="home.php?mod=space&amp;uid=<?=$space['uid']?>&amp;do=trade&amp;view=tradelog&amp;type=buy" <?=$orderactives['buy']?>>买家交易</a>
</p>
<? } elseif($_G['gp_view'] == 'all') { ?>
<p class="tbmu">
<a href="home.php?mod=space&amp;do=trade&amp;view=all"<?=$orderactives['new']?>>最新商品</a><span class="pipe">|</span>
<a href="home.php?mod=space&amp;do=trade&amp;view=all&amp;order=hot"<?=$orderactives['hot']?>>热门商品</a>
</p>
<? } if($userlist) { ?>
<p class="tbmu">
按好友查看
<select name="fuidsel" onchange="fuidgoto(this.value);" class="ps">
<option value="">全部好友</option><? if(is_array($userlist)) foreach($userlist as $value) { ?><option value="<?=$value['fuid']?>"<?=$fuid_actives[$value['fuid']]?>><?=$value['fusername']?></option>
<? } ?>
</select>
</p>
<? } if($_G['gp_view'] == 'tradelog') { ?><?php $selltrades = array('all' => '全部交易', 'trading' => '进行中的', 'attention' => '关注的', 'eccredit' => '评价过的', 'success' => '成功的', 'refund' => '退款的', 'closed' => '失败的', 'unstart' => '未生效的'); ?><div class="tl tlog">
<table id="list_trade_selles" cellspacing="0" cellpadding="0">
<tr class="th">
<td width="90">商品名称</td>
<td>&nbsp;</td>
<td class="by"><? if($viewtype == 'sell') { ?>买家<? } else { ?>卖家<? } ?></td>
<td class="by">交易金额</td>
<td>
<select onchange="filterTrade(this.value)"><? if(is_array($selltrades)) foreach($selltrades as $key => $langstr) { ?><option value="<?=$key?>" <? if($filter == $key) { ?> selected="selected"<? } ?>><?=$langstr?></option>
<? } ?>
</select>
<script type="text/javascript">
function filterTrade(value) {
window.location = 'home.php?mod=space&uid=1&do=trade&view=tradelog&type=<?=$viewtype?>&filter='+value;
}
</script>
</td>
<? if($filter == 'success' || $filter == 'refund' || $filter == 'eccredit') { ?><td>信用评价</td><? } ?>
</tr>
<tbody>
<? if($tradeloglist) { if(is_array($tradeloglist)) foreach($tradeloglist as $tradelog) { ?><tr>
<td>
<a href="forum.php?mod=viewthread&amp;tid=<?=$tradelog['tid']?>&amp;do=tradeinfo&amp;pid=<?=$tradelog['pid']?>"><? if($tradelog['aid']) { ?><img src="<? echo getforumimg($tradelog['aid']); ?>" width="90" /><? } else { ?><img src="<?=IMGDIR?>/nophotosmall.gif" /><? } ?></a>
</td>
<td>
<a href="forum.php?mod=trade&amp;orderid=<?=$tradelog['orderid']?>"><?=$tradelog['subject']?></a><br />
<a href="forum.php?mod=viewthread&amp;tid=<?=$tradelog['tid']?>&amp;do=tradeinfo&amp;pid=<?=$tradelog['pid']?>" class="xg1"><?=$tradelog['threadsubject']?></a>
</td>
<td>
<? if($item == 'selltrades') { if($tradelog['buyerid']) { ?><a target="_blank" href="home.php?mod=space&amp;uid=<?=$tradelog['buyerid']?>"><?=$tradelog['buyer']?></a><? } else { ?><?=$tradelog['buyer']?><? } } else { ?>
<a target="_blank" href="home.php?mod=space&amp;uid=<?=$tradelog['sellerid']?>"><?=$tradelog['seller']?></a>
<? } ?>
</td>
<td>
<? if($tradelog['price'] > 0) { ?>
<?=$tradelog['price']?> 元<br/>
<? } if($tradelog['credit'] > 0) { ?>
<?=$extcredits[$creditid]['title']?> <?=$tradelog['credit']?> <?=$extcredits[$creditid]['unit']?>
<? } ?>
</td>
<td>
<cite><a target="_blank" href="forum.php?mod=trade&amp;orderid=<?=$tradelog['orderid']?>">
<? if($tradelog['attend']) { ?>
<b><?=$tradelog['status']?></b>
<? } else { ?>
<?=$tradelog['status']?>
<? } ?>
</a></cite>
<em><?=$tradelog['lastupdate']?></em>
</td>
<? if($filter == 'success' || $filter == 'refund' || $filter == 'eccredit') { ?>
<td>
<? if($tradelog['ratestatus'] == 3) { ?>
双方已评
<? } elseif(($item == 'buytrades' && $tradelog['ratestatus'] == 1) || ($item == 'selltrades' && $tradelog['ratestatus'] == 2)) { ?>
等待对方评价
<? } else { if(($item == 'buytrades' && $tradelog['ratestatus'] == 2) || ($item == 'selltrades' && $tradelog['ratestatus'] == 1)) { ?>对方已评<br /><? } if($item == 'buytrades') { ?>
<a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=rate&amp;orderid=<?=$tradelog['orderid']?>&amp;type=0" target="_blank">评价</a>
<? } else { ?>
<a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=rate&amp;orderid=<?=$tradelog['orderid']?>&amp;type=1" target="_blank">评价</a>
<? } } ?>
</td>
<? } ?>
</tr>
<? } } else { ?>
<td colspan="<? if($filter == 'success' || $filter == 'refund' || $filter == 'eccredit') { ?>6<? } else { ?>5<? } ?>"><p class="emp">暂无数据</p></td></tr>
<? } ?>
</tbody>
</table>
</div>
<? if($multi) { ?><div class="pgs cl mtm"><?=$multi?></div><? } } elseif($_G['gp_view'] == 'eccredit') { ?>
<script src="<?=$_G['setting']['jspath']?>forum.js?<?=VERHASH?>" type="text/javascript"></script>

<p class="mtm mbw">
<? if($member['alipay']) { ?><a href="https://www.alipay.com/trade/i_credit.do?email=<?=$member['alipay']?>" target="_blank"><img src="<?=IMGDIR?>/alipaysmall.gif" alt="支付宝账户信用信息" class="vm" /></a>&nbsp;&nbsp;<? } if($member['taobao']) { ?><script type="text/javascript">document.write('<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&amp;uid='+encodeURIComponent('<?=$member['taobaoas']?>')+'&amp;s=2"><img src="http://amos1.taobao.com/online.ww?v=2&amp;uid='+encodeURIComponent('<?=$member['taobaoas']?>')+'&amp;s=1" alt="阿里旺旺" class="vm" /></a>&nbsp;');</script>&nbsp;&nbsp;<? } ?>
卖家好评率: <?=$sellerpercent?>%;&nbsp;&nbsp;
买家好评率: <?=$buyerpercent?>%;&nbsp;&nbsp;
注册时间: <?=$member['regdate']?>
</p>
<table id="sellcredit" summary="eccredit" cellspacing="0" cellpadding="0" class="dt">
<caption><h3 class="pbm">卖家信用 <?=$member['buyercredit']?> <img src="<?=STATICURL?>image/traderank/buyer/<?=$member['buyerrank']?>.gif" alt="buyer rank" class="vm" /></h3></caption>
<tr class="alt">
<td style="width: 45px;">&nbsp;</td>
<td>最近1周</td>
<td>最近1个月</td>
<td>最近6个月</td>
<td>6个月前</td>
<td>总计</td>
</tr>
<tr>
<td><img src="<?=STATICURL?>image/traderank/good.gif" width="14" height="16" alt="good" class="vm" /> <span style="color:red">好评</span></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=thisweek&amp;level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thisweek']['good']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=thismonth&amp;level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thismonth']['good']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=halfyear&amp;level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['halfyear']['good']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=before&amp;level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['before']['good']?></a></td>
<td><?=$caches['sellercredit']['all']['good']?></td>
</tr>
<tr>
<td><img src="<?=STATICURL?>image/traderank/soso.gif" width="14" height="16" alt="soso" class="vm" /> <span style="color:green">中评</span></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=thisweek&amp;level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thisweek']['soso']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=thismonth&amp;level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thismonth']['soso']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=halfyear&amp;level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['halfyear']['soso']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=before&amp;level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['before']['soso']?></a></td>
<td><?=$caches['sellercredit']['all']['soso']?></td>
</tr>
<tr>
<td><img src="<?=STATICURL?>image/traderank/bad.gif" width="14" height="16" alt="bad" class="vm" /> 差评</td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=thisweek&amp;level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thisweek']['bad']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=thismonth&amp;level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thismonth']['bad']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=halfyear&amp;level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['halfyear']['bad']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=before&amp;level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['before']['bad']?></a></td>
<td><?=$caches['sellercredit']['all']['bad']?></td>
</tr>
<tr>
<td>总计</td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=thisweek#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thisweek']['total']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=thismonth#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thismonth']['total']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=halfyear#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['halfyear']['total']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=buyer&amp;filter=before#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['before']['total']?></a></td>
<td><?=$caches['sellercredit']['all']['total']?></td>
</tr>
</table>

<table id="buyercredit" summary="eccredit" cellspacing="0" cellpadding="0" class="dt">
<caption><h3 class="ptw pbm">买家信用 <?=$member['sellercredit']?> <img src="<?=STATICURL?>image/traderank/seller/<?=$member['sellerrank']?>.gif" alt="seller rank" class="vm" /></h3></caption>
<tr class="alt">
<td style="width: 45px;">&nbsp;</td>
<td>最近1周</td>
<td>最近1个月</td>
<td>最近6个月</td>
<td>6个月前</td>
<td>总计</td>
</tr>
<tr>
<td><img src="<?=STATICURL?>image/traderank/good.gif" width="14" height="16" alt="good" class="vm" /> <span style="color:red">好评</span></td><td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=thisweek&amp;level=good" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thisweek']['good']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=thismonth&amp;level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thismonth']['good']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=halfyear&amp;level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['halfyear']['good']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=before&amp;level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['before']['good']?></a></td>
<td><?=$caches['buyercredit']['all']['good']?></td>
</tr>
<tr>
<td><img src="<?=STATICURL?>image/traderank/soso.gif" width="14" height="16" alt="soso" class="vm" /> <span style="color:green">中评</span></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=thisweek&amp;level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thisweek']['soso']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=thismonth&amp;level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thismonth']['soso']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=halfyear&amp;level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['halfyear']['soso']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=before&amp;level=soso" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['before']['soso']?></a></td>
<td><?=$caches['buyercredit']['all']['soso']?></td>
</tr>
<tr>
<td><img src="<?=STATICURL?>image/traderank/bad.gif" width="14" height="16" alt="bad" class="vm" /> 差评</td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=thisweek&amp;level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thisweek']['bad']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=thismonth&amp;level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thismonth']['bad']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=halfyear&amp;level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['halfyear']['bad']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=before&amp;level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['before']['bad']?></a></td>
<td><?=$caches['buyercredit']['all']['bad']?></td>
</tr>
<tr>
<td>总计</td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=thisweek#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thisweek']['total']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=thismonth#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thismonth']['total']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=halfyear#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['halfyear']['total']?></a></td>
<td><a href="home.php?mod=spacecp&amp;ac=eccredit&amp;op=list&amp;uid=<?=$uid?>&amp;from=seller&amp;filter=before#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['before']['total']?></a></td>
<td><?=$caches['buyercredit']['all']['total']?></td>
</tr>
</table>
<div id="ajaxrate"></div>
<? if($_G['uid']) { ?>
<script type="text/javascript">ajaxget('home.php?mod=spacecp&ac=eccredit&op=list&uid=<?=$uid?>', 'ajaxrate');var explainmenu='ajax_explain_menu';</script>
<? } } else { if($list) { ?>
<ul class="ml tradl cl"><? if(is_array($list)) foreach($list as $key => $value) { ?><li class="bbda">
<p class="u xg1"><a href="home.php?mod=space&amp;uid=<?=$value['sellerid']?>" title="<?=$value['seller']?>" target="_blank"><?=$value['seller']?></a></p>
<a href="forum.php?mod=viewthread&amp;tid=<?=$value['tid']?>&amp;do=tradeinfo&amp;pid=<?=$value['pid']?>" class="tn">
<? if($value['displayorder'] > 0) { ?><em class="hot">推荐商品</em><? } ?>
<img src="<? if($value['aid']) { echo getforumimg($value['aid']); } else { ?><?=IMGDIR?>/nophoto.gif<? } ?>" alt="<?=$value['subject']?>" />
</a>
<? if($value['expiration'] && $value['expiration'] < $_G['timestamp'] || $value['closed']) { ?>
<p class="stat">- 交易结束 -</p>
<? } else { if($value['price'] > 0) { ?>
<p class="p">&yen; <em class="xi1"><?=$value['price']?></em></p>
<? } if($_G['setting']['creditstransextra']['5'] != -1 && $value['credit']) { ?>
<p class="<? if($value['price'] > 0) { ?>xg1<? } else { ?>p<? } ?>"><? if($value['price'] > 0) { ?>附加 <? } ?><em class="xi1"><?=$value['credit']?></em> <?=$_G['setting']['extcredits'][$_G['setting']['creditstransextra']['5']]['unit']?><?=$_G['setting']['extcredits'][$_G['setting']['creditstransextra']['5']]['title']?></p>
<? } } ?>
<h4><a href="forum.php?mod=viewthread&amp;tid=<?=$value['tid']?>&amp;do=tradeinfo&amp;pid=<?=$value['pid']?>" title="<?=$value['subject']?>" class="xi2"><?=$value['subject']?></a></h4>
</li>
<? } if($emptyli) { if(is_array($emptyli)) foreach($emptyli as $value) { ?><li class="bbda">&nbsp;</li>
<? } } ?>
</ul>
<? } else { ?>
<div class="emp">还没有相关的商品。</div>
<? } } ?>
</div>
<? if($multi) { ?><div class="pgs cl"><?=$multi?></div><? } ?>
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
</div>
<div class="appl"><?php if(!empty($_G['setting']['pluginhooks']['global_userabout_top'][$_G['basescript'].'::'.CURMODULE])) echo $_G['setting']['pluginhooks']['global_userabout_top'][$_G['basescript'].'::'.CURMODULE]; ?><?php getuserapp(1); ?><ul><? if(is_array($_G['setting']['spacenavs'])) foreach($_G['setting']['spacenavs'] as $nav) { if($nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))) { if(in_array($nav['code'], array('userpanelarea1', 'userpanelarea2'))) { if(!empty($_G['my_panelapp']) && $_G['setting']['my_app_status']) { if($nav['code']=='userpanelarea1' && !empty($_G['my_panelapp']['1'])) { if(is_array($_G['my_panelapp']['1'])) foreach($_G['my_panelapp']['1'] as $appid => $app) { ?><li>
<a href="userapp.php?mod=app&amp;id=<?=$app['appid']?>" title="<?=$app['appname']?>"><img <? if($app['icon']) { ?>src="<?=$app['icon']?>" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/<?=$app['appid']?>'"<? } else { ?> src="http://appicon.manyou.com/icons/<?=$app['appid']?>"<? } ?> name="<?=$appid?>" alt="<?=$app['appname']?>" /><?=$app['appname']?></a>
</li>
<? } } elseif($nav['code']=='userpanelarea2' && !empty($_G['my_panelapp']['2'])) { if(is_array($_G['my_panelapp']['2'])) foreach($_G['my_panelapp']['2'] as $appid => $app) { ?><li>
<a href="userapp.php?mod=app&amp;id=<?=$app['appid']?>" title="<?=$app['appname']?>"><img <? if($app['icon']) { ?>src="<?=$app['icon']?>" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/<?=$app['appid']?>'"<? } else { ?> src="http://appicon.manyou.com/icons/<?=$app['appid']?>"<? } ?> name="<?=$appid?>" alt="<?=$app['appname']?>" /><?=$app['appname']?></a>
</li>
<? } } } } else { ?>
<?=$nav['code']?>
<? } } } ?>
</ul>
<? if($_G['setting']['my_app_status']) { if(!empty($_G['cache']['userapp'])) { ?>
<ul id="my_defaultapp"><? if(is_array($_G['cache']['userapp'])) foreach($_G['cache']['userapp'] as $value) { ?><li><a href="userapp.php?mod=app&amp;id=<?=$value['appid']?>"><img <? if($value['icon']) { ?>src="<?=$value['icon']?>" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/<?=$value['appid']?>'"<? } else { ?> src="http://appicon.manyou.com/icons/<?=$value['appid']?>"<? } ?> alt="<?=$value['appname']?>" /><?=$value['appname']?></a></li>
<? } ?>
<?php if(!empty($_G['setting']['pluginhooks']['userapp_menu_top'])) echo $_G['setting']['pluginhooks']['userapp_menu_top']; ?>
</ul>
<? } if($_G['my_menu']) { ?>
<ul id="my_userapp"><? if(is_array($_G['my_menu'])) foreach($_G['my_menu'] as $value) { ?><li id="userapp_li_<?=$value['appid']?>"><a href="userapp.php?mod=app&amp;id=<?=$value['appid']?>" title="<?=$value['appname']?>"><img <? if($value['icon']) { ?>src="<?=$value['icon']?>" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/<?=$value['appid']?>'"<? } else { ?> src="http://appicon.manyou.com/icons/<?=$value['appid']?>"<? } ?> alt="<?=$value['appname']?>" /><?=$value['appname']?></a></li>
<? } ?>
<?php if(!empty($_G['setting']['pluginhooks']['userapp_menu_middle'])) echo $_G['setting']['pluginhooks']['userapp_menu_middle']; ?>
</ul>
<? } if($_G['my_menu_more']) { ?>
<p class="pbm bbda xg1 cl"><a href="javascript:;" class="unfold" id="a_app_more" onclick="userapp_open();">展开</a></p>
<? } if(checkperm('allowmyop')) { ?>
<ul class="myo mtm">
<li><a href="userapp.php?mod=manage&amp;my_suffix=%2Fapp%2Flist"><img src="<?=IMGDIR?>/app_add.gif" alt="app_add" />添加<?=$_G['setting']['navs']['5']['navname']?></a></li>
<li><a href="userapp.php?mod=manage&amp;ac=menu"><img src="<?=IMGDIR?>/app_set.gif" alt="app_set" />管理<?=$_G['setting']['navs']['5']['navname']?></a></li>
</ul>
<? } } ?>
<?php if(!empty($_G['setting']['pluginhooks']['global_userabout_bottom'][$_G['basescript'].'::'.CURMODULE])) echo $_G['setting']['pluginhooks']['global_userabout_bottom'][$_G['basescript'].'::'.CURMODULE]; ?>
<script type="text/javascript">inituserabout();</script><div class="drag">
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
</div>

</div>
</div>

<div class="wp mtn">
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>

<script type="text/javascript">
function fuidgoto(fuid) {
window.location.href = 'home.php?mod=space&do=trade&view=we&fuid='+fuid;
}
</script><? include template('common/footer'); ?>